package nl.avans.osgi.ds.client.datamodel.internal;

import nl.avans.osgi.ds.client.datamodel.DataModel;
import nl.avans.osgi.ds.persistence.person.model.Person;

public class ModelService implements DataModel {

    @Override
    public void setData(Person person) {
        System.out.println("Model: " + person.getId() 
                + " | " + person.getFirstName() + " " + person.getLastName()
                + " | " + person.getGender()
                + " | " + person.getAddress().getStreet()
                + " | " + person.getAddress().getNumber()
                + " | " + person.getAddress().getPostalCode()
                + " | " + person.getAddress().getCity()
                + " | " + person.getAddress().getCountry());
    }

    protected void activate() {
        System.out.println("ModelService activated.");
    }
    
    protected void deactivate() {
        System.out.println("ModelService deactivated.");
    }
    
}
